package com.yourname.xhs.bean;

import com.yourname.xhs.entity.User;

public class Note {
    private Long id;
    private String title;
    private String content;
    private Category category;
    private User author;
    //创建时间和修改时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public User getAuthor() {
        return author;
    }

    public void setAuthor(User author) {
        this.author = author;
    }


    public Note(Long id, String title, String content, Category category, User author) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.category = category;
        this.author = author;
    }
    public Note(String title, String content, Category category, User author) {
        this.title = title;
        this.content = content;
            this.category = category;
        this.author = author;
    }
   public Note(){

   }

    @Override
    public String toString() {
        return "Note{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", category=" + category +
                ", author=" + author +
                '}';
    }
}
